avahi: Don't complain with g_warning if the daemon wasn't running
authorSam Spilsbury <sam@endlessm.com>
Tue, 16 Jan 2018 01:23:11 +0000 (09:23 +0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 18 Apr 2018 19:39:33 +0000 (19:39 +0000)
commit002e5eeac605093e1f3935f10f8ae30fd4a2e659
treed417caf7e31225c4d4e0cf8747a38b510b1c024a
parent16d3359bf8827f6a6d70aa313c6e7f16a4f2e277
avahi: Don't complain with g_warning if the daemon wasn't running

This is a normal case when running unit tests in client code
on continuous integration infrastructure. When those tests are
running they will set G_DEBUG=fatal-warnings which will cause
the program to abort if a warning is emitted. Instead, emit
a debug message if the problem was that we couldn't connect to
the daemon.

Closes: #1542
Approved by: jlebon
src/libostree/ostree-repo-finder-avahi.c
src/libostree/ostree-repo-pull.c